import React, {Component} from 'react'
import ClockComponent from './clockComponent'
class Demo4Component extends Component {
  constructor(props) {
    super(props);
    this.state = {
      value: 'Demo4Component'
    }
    this.handle = this
      .handle
      .bind(this);
  }

  handle() {
    this.setState({value: 'Demo4Component has been changed'})
  }

  render() {
    return (
      <div>
        <span>Demo4Component</span>
        {< ClockComponent > </ClockComponent>}
      </div>
    )
  }
}

export default Demo4Component